package com.ruoyi.feign.fallback;

import com.ruoyi.entity.MessageRequest;
import com.ruoyi.entity.MessageResponse;
import com.ruoyi.feign.NtfyServiceClient;
import org.springframework.stereotype.Component;

@Component
public class NtfyServiceClientFallback implements NtfyServiceClient {
    
    @Override
    public String sendTemperature() {
        return "服务不可用，返回默认温度数据";
    }
    
    @Override
    public String getData() {
        return "服务不可用，返回默认数据";
    }

    @Override
    public MessageResponse sendNtfyMessage(MessageRequest request) {
        return null;
    }
}